USE [OHNEW]
GO

/****** Object:  Table [dbo].[P_Vendor]    Script Date: 11/26/2012 19:09:27 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[P_Vendor](
	[ID] [uniqueidentifier] NOT NULL,
	[Code] [varchar](50) NOT NULL,
	[Name] [varchar](50) NOT NULL,
	[Area] [uniqueidentifier] NOT NULL,
	[Bank] [varchar](50) NULL,
	[BankAccount] [varchar](50) NULL,
	[Taxnumber] [varchar](50) NULL,
	[Address] [varchar](50) NULL,
	[Tel] [varchar](50) NULL,
	[Contact] [varchar](50) NULL,
	[Disable] [int] NULL,
 CONSTRAINT [PK_P_Vendor] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[P_Vendor] ADD  DEFAULT (newid()) FOR [ID]
GO